Skip to content

[pull] main from python:main#755

Merged
pull[bot] merged 5 commits intotj-python:mainfrom
python:main
Feb 12, 2026
Merged

[pull] main from python:main#755
pull[bot] merged 5 commits intotj-python:mainfrom
python:main

Conversation

@pull
Copy link

@pull pull bot commented Feb 12, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )


📚 Documentation preview 📚: https://cpython-previews--755.org.readthedocs.build/

pablogsal and others added 5 commits February 12, 2026 11:45
…4733)

Remove spurious Py_DECREF on borrowed ref in LOAD_GLOBAL specialization

_PyDict_LookupIndexAndValue() returns a borrowed reference via
_Py_dict_lookup(), but specialize_load_global_lock_held() called
Py_DECREF(value) on it when bailing out for lazy imports. Each time
the adaptive counter fired while a lazy import was still in globals,
this stole one reference from the dict's object. With 8+ threads
racing through LOAD_GLOBAL during concurrent lazy import resolution,
enough triggers accumulated to drive the refcount to zero while the
dict and other threads still referenced the object, causing
use-after-free.
Python.h now also includes <string.h> in the limited C API version 3.11
and newer to fix the Py_CLEAR() macro which uses memcpy().

Add a Py_CLEAR() test in test_cext.

Modify also _Py_TYPEOF to use C23 typeof() if available.
…7281)

Lookup for CJK ideograms and Hangul syllables is now case-insensitive,
as is the case for other character names.
@pull pull bot locked and limited conversation to collaborators Feb 12, 2026
@pull pull bot added the ⤵️ pull label Feb 12, 2026
@pull pull bot merged commit e66f4a5 into tj-python:main Feb 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants